#ifndef _EXPAND_BUTTON_H_
#define _EXPAND_BUTTON_H_


#include "CSkipButton.h"
class ElementForm;
class CExpandButton :public CSkipButton
{
public:
	explicit CExpandButton(const QString& name, const QString& iPath, const int& index, const bool &bPreview, const QStringList& values, const QString& cmdKey,const QString& iPrifix="");
	virtual ~CExpandButton();
	void drawElement(QWidget* widget, QPainter* painter, bool bSelected, const QRect& rect) override;
	QList<UIElement*> convertToElements();
protected:
	virtual void drawText(QPainter* painter);
protected:
	
	bool _bPreview;
	QList<QString> _values;
	QString _cmdKey;
	QString _iPrifix;
};

#endif	 //_EXPAND_BUTTON_H_
